imwayland: fix potential leak of attr list
authorChristian Hergert <chergert@redhat.com>
Sat, 28 Jul 2018 06:46:31 +0000 (23:46 -0700)
committerChristian Hergert <chergert@redhat.com>
Sat, 28 Jul 2018 06:46:31 +0000 (23:46 -0700)
commit508e0648b5564c315379f61a8cf4c1771928850a
treeb11dcce447b2d085935aa66e35280f1c6df8842a
parente0807fcf54c5df00b6f5cc26f035106cd4c33e32
imwayland: fix potential leak of attr list

This fixes a potential leak of a PangoAttrList that is set when chaining
up to the parent get_preedit_string(). We check to see if the attr list
was created and reuse it instead of leaking the previous value.
modules/input/imwayland.c